package com.xucy.springboot.common.HashTable;

/**
 * @Author xucy
 * @Date 2019-04-18 20:11
 * @Description
 **/

public class HashTable {

    private Person[] people=new Person[100];


    public void put(Person person){
        int index=person.HashCode();
        people[index]=person;
    }

    public Person get(Person person){
        int index=person.HashCode();

        return people[index];
    }
}
